Skip to content

build(deps): bump django-ninja from 1.7.1 to 1.8.0 - #789

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/uv/django-ninja-1.8.0
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/uv/django-ninja-1.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Bumps django-ninja from 1.7.1 to 1.8.0.

Release notes

Sourced from django-ninja's releases.

v1.8.0

What's New

Webhooks

You can now document the webhooks your API sends. Decorate the payload Schema with @api.webhook or @router.webhook and it appears in the OpenAPI 3.1 `webh## What's New

Webhooks

You can now document the webhooks your API sends. Decorate the payload Schema with @api.webhook or @router.webhook and it appears in the OpenAPI 3.1 webhooks section, so Swagger and Redoc show it next to your operations. This is documentation only: Ninja doesn't send anything. The guide shows one way to deliver them with Django tasks.

from ninja import NinjaAPI, Router, Schema
api = NinjaAPI()
@​api.webhook("order.paid")
class OrderPaid(Schema):
id: int
total: Decimal
router = Router(tags=["orders"])
@​router.webhook  # name defaults to the class name: "OrderShipped"
class OrderShipped(Schema):
id: int

New documentation (and docs for AI assistants)

The docs at django-ninja.dev are reorganized into four sections:

  • Quick Start: build an events API in three pages
  • Tutorial: build TaskFlow, a team task tracker, in eight parts. It covers relations, validation, JWT auth and permissions, filtering, uploads, testing, OpenAPI polish and versioning
  • Guide: one short page per topic, and every example was run against the current code
  • About

The docs now include files for LLMs. Point your coding assistant at /llms.txt, which has usage notes and a link to every page, or at /llms-full.txt, which is the whole Guide in one file. Every page is also served as raw Markdown, e.g. /guide/routers.md.

register_field() accepts field classes

A custom Django field that subclasses a built-in one inherits its internal type, so registering it by name ("UUIDField") would change every UUIDField. You can now register the field class itself:

from typing import Annotated
from pydantic import BeforeValidator
from ninja.orm import register_field
class PublicIDField(models.UUIDField):
def from_db_value(self, value, expression, connection):
return PublicID(value)
register_field(PublicIDField, Annotated[str, BeforeValidator(str)])

... (truncated)

Commits
  • d235edc Release 1.8.0
  • 3071609 Don't log the Authorization header value in HttpBearer (#1853)
  • ae06758 Read multipart Body parts as JSON unless their schema is primitive (#1850)
  • 214381c Merge pull request #1799 from Nuung/docs-1708-single-file-markdown
  • 751d7df docs: prefer Query[...]/Body[...]/Path[...] annotations in guide examples
  • 43021da docs: prefer Query[...]/Body[...] annotations in llms best practices
  • 1bd7ff2 docs: add project-structure note to llms best practices
  • dfb4eed docs: add llms.txt, per-page Markdown and best-practice notes
  • cad905d Merge pull request #1846 from vitalik/fix/nested-schema-revalidation
  • 6ab659a Re-validate nested Schema instances again, keeping their fields_set (#1845)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 16, 2026
Bumps [django-ninja](https://github.com/vitalik/django-ninja) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/vitalik/django-ninja/releases)
- [Commits](vitalik/django-ninja@v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: django-ninja
  dependency-version: 1.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/django-ninja-1.8.0 branch from 4176fcf to 2b73845 Compare November 16, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants